#ifndef __USART_H_
#define __USART_H_

#ifdef __cplusplus
extern "C" {
#endif
	
	
#include "Board.h"
#include "stdio.h"
#include "apm32f0xx_gpio.h"
#include "apm32f0xx_usart.h"
#include "apm32f0xx_misc.h"

//void USART_Write(int dat);
void USART1_Init(void);
void USART2_Init(void);
void USART_Receive_Isr(void);
void USART_Send_Isr(void);
int fputc(int ch, FILE* f);
//void USART_Write(USART_T* usart, uint8_t* dat);

int fputc1(int ch, FILE* f);

void USART_Write(int dat);

#ifdef __cplusplus
}
#endif

#endif 

